<template>
	<view class="CommissionRank">
	  <view class="header">
	    <view class="rank" v-if='{{position}}'>您目前的排名<text class="num">{{position}}</text>名</view>
	    <view class="rank" v-else>您目前暂无排名</view>
	  </view>
	  <view class="wrapper">
	    <view class="nav acea-row row-around">
	      <view
	        class="item {{activeType == index ? 'font-color' : ''}}"
	        v-for="{{navList}}"
	        data-index="{{index}}"
	        bindtap="switchTab1"
	        wx:key='index'
	      >
	        {{ item.title }}
	      </view>
	    </view>
	    
	    <view v-if="{{navList[activeType].children && navList[activeType].children.length > 0}}" class="bg-white nav text-center">
	      <view 
	      class="cu-item {{index==activeSubtype?'text-orange cur':''}}" 
	      v-for="{{navList[activeType].children}}" 
	      data-index="{{index}}"
	      bindtap="switchTab2" 
	      wx:key="index" style="margin: 0 5rpx;padding: 0 10rpx;">
	        {{ item }}
	      </view>
	    </view>
	  
	    <view class="list">
	      <view class="item acea-row row-between-wrapper" v-for='{{rankList}}' wx:key='index'>
	        <view class="num" v-if='{{index <= 2}}'>
	          <image src="/images/medal0{{index+1}}.png"></image>
	        </view>
	        <view class="num" v-else>
	        {{index+1}}
	        </view>
	        <view class="picTxt acea-row row-between-wrapper">
	          <view class="pictrue"><image src="{{item.avatar}}"></image></view>
	          <view class="text line1">{{item.nickname}}</view>
	        </view>
	        <view class="people font-color">{{item.weight}}斤</view>
	      </view>
	    </view>
	  </view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			
		}
	}
</script>

<style scoped>
.CommissionRank .header {background: url("") no-repeat;
  width: 100%;height: 344rpx;background-size: 100% 100%;position: relative;z-index: -1;}
.CommissionRank .header .rank {font-size: 33rpx;color: #fff;position: absolute;top: 160rpx;
  left: 48rpx;}
.CommissionRank .header .rank .num {font-size: 51rpx;font-weight: bold;margin: 0 10rpx;}
.CommissionRank .wrapper {width: 710rpx;background-color: #fff;border-radius: 20rpx;
  margin: -76rpx auto 0 auto;}
.CommissionRank .wrapper .nav {height: 99rpx;border-bottom: 2.5rpx solid #f3f3f3;font-size: 30rpx;font-weight: bold;color: #999;line-height: 99rpx;}
.CommissionRank .wrapper .nav .item.font-color {border-bottom: 4rpx solid #e93323;}
.CommissionRank .wrapper .list {padding: 0 30rpx;}
.CommissionRank .wrapper .list .item {border-bottom: 1px solid #f3f3f3;height: 101rpx;
  font-size: 28rpx;}
.CommissionRank .wrapper .list .item .num {color: #666;width: 70rpx;}
.CommissionRank .wrapper .list .item .num image {width: 34rpx;height: 40rpx;display: block;}
.CommissionRank .wrapper .list .item .picTxt {width: 350rpx;}
.CommissionRank .wrapper .list .item .picTxt .pictrue {width: 68rpx;height: 68rpx;}
.CommissionRank .wrapper .list .item .picTxt .pictrue image {width: 100%;height: 100%;
  display: block;border-radius: 50%;}
.CommissionRank .wrapper .list .item .picTxt .text {width: 262rpx;color: #333;}
.CommissionRank .wrapper .list .item .people {width: 175rpx;text-align: right;}
</style>
